<template>
  <el-dialog v-bind="$attrs">
    <slot></slot>
    <div v-if="slot.footer">
      <slot name="footer"></slot>
    </div>
  </el-dialog>
</template>

<script lang="ts" setup>
  import { useSlots } from 'vue';
  const slot = useSlots();
</script>
